<!DOCTYPE html>
<!--[if IE 8]>
<html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]>
<html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
    <meta charset="UTF-8">
    <title>菜单管理</title>
    [#include "../../../include/header.ftl" /]
    <link href="${ctx}/static/js/chosen/bootstrap-chosen.css" rel="stylesheet">
    <link href="${ctx}/static/js/jqgrid/css/ui.jqgrid.css" rel="stylesheet">
    <style type="text/css">
        .menuContent {
            background-color: #ffffff;
            overflow: auto;
            border: 1px solid #95B8E7;
            z-index: 9999999999999999999;
            margin-left: -1px;
        }

        .has-error .chosen-single {
            border-color: #b94a48;
            -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
        }

        .has-success .chosen-single {
            border-color: #468847;
            -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
            box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
        }
    </style>
</head>
<body>
<div class="col-md-12 col-sm-12" style="padding-top: 10px">

    <div id="table1Toolbar">
        <div class="grid-btn">
            <a class="btn btn-primary" id="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
            <a class="btn btn-primary" id="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
            <a class="btn btn-primary" id="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
        </div>
    </div>
    <div class="row">
        <div class="margin-bottom-0">
            <div class="panel-body">
                <table id="table1"></table>
            </div>
        </div>
    </div>
</div>

<div id="menuropt" style="display: none;margin-top: 20px">
    <div class="col-md-12 col-sm-12">
        <div class="form-body">
            <form role="form" class="form-horizontal" id="form_opt">
                <div class="row">
                    <div class="col-md-12 col-sm-12">
                        <div class="form-group">
                            <label class="col-md-2 control-label">模块名称</label>
                            <div class="col-md-10">
                                <div class="input-icon right">
                                    <input type="text" id="name" data-type="rep" name="name" class="form-control" placeholder="">

                                </div>
                            </div>
                        </div>
                    </div>

                </div>
                <div class="row">
                    <div class="col-md-12 col-sm-12">
                        <div class="form-group">
                            <label class="col-md-2 control-label">模块地址</label>
                            <div class="col-md-10">
                                <div class="input-icon right">
                                    <input type="text" id="url" data-type="rep" name="url" class="form-control" placeholder="">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12 col-sm-12">
                        <div class="form-group">
                            <label class="col-md-2 control-label">上级模块</label>
                            <div class="col-md-10">
                                <div class="input-icon right">
                                    <div class="chosen-container chosen-container-single chosen-container-single-nosearch " title=""
                                         id="parentId_chosen" style="width: 100%;"><a class="chosen-single">
                                        <span></span>
                                        <div><b></b></div>
                                    </a>
                                    </div>
                                    <input type="hidden" name="parentId" data-type="rep" id="parentId" class="form-control" placeholder="">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-6 col-sm-6">
                        <div class="form-group">
                            <label class="col-md-4 control-label">权限符</label>
                            <div class="col-md-8">
                                <div class="input-icon right">
                                    <input type="text" name="perms" data-type="rep" id="perms" class="form-control" placeholder="">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-sm-6">
                        <div class="form-group">
                            <label class="col-md-4 control-label">类型</label>
                            <div class="col-md-8">
                                <div class="input-icon right">
                                    <select id="type" name="type" class="bs-select">
                                        <option value="0">目录</option>
                                        <option value="1">菜单</option>
                                        <option value="2">权限</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-6 col-sm-6">
                        <div class="form-group">
                            <label class="col-md-4 control-label">图标</label>
                            <div class="col-md-8">
                                <div class="input-icon right">
                                    <input type="text" name="icon" data-type="rep" id="icon" class="form-control" placeholder="">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-6 col-sm-6">
                        <div class="form-group">
                            <label class="col-md-4 control-label">排序</label>
                            <div class="col-md-8">
                                <div class="input-icon right">
                                    <div id="spinner1">
                                        <div class="input-group input-small">
                                            <input type="text" id="orderNum" data-type="rep" name="orderNum" class="spinner-input form-control">
                                            <div class="spinner-buttons input-group-btn btn-group-vertical">
                                                <button type="button" class="btn spinner-up btn-xs blue">
                                                    <i class="fa fa-angle-up"></i>
                                                </button>
                                                <button type="button" class="btn spinner-down btn-xs blue">
                                                    <i class="fa fa-angle-down"></i>
                                                </button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <input type="hidden" id="menuId" name="menuId">
            </form>
        </div>
    </div>
</div>
<div id="menuContent" class="menuContent"
     style="display:none;height: 210px;overflow: auto; position: absolute;">
    <ul id="funtree1" class="ztree" style="margin-top:0; width:226px;"></ul>
</div>
<script type="text/javascript" src="${ctx}/static/js/jquery/layout/jquery-ui-1.11.0.js"></script>
<script type="text/javascript" src="${ctx}/static/js/jquery/layout/jquery.layout.js"></script>
<script type="text/javascript" src="${ctx}/static/js/jquery-treegrid/js/jquery.treegrid.js"></script>
<script type="text/javascript" src="${ctx}/static/js/jquery-treegrid/js/jquery.treegrid.bootstrap3.js"></script>
<script type="text/javascript" src="${ctx}/static/js/jquery-treegrid/extension/jquery.treegrid.extension.js"></script>
<script type="text/javascript" src="${ctx}/static/apls/assets/plugins/jquery-validation/jquery.validate.min.js"></script>
<script type="text/javascript" src="${ctx}/static/apls/assets/plugins/jquery-validation/localization/messages_zh.min.js"></script>
<script type="text/javascript" src="${ctx}/static/apls/assets/plugins/jquery-validation/validateEx.js"></script>
<script type="text/javascript" src="${ctx}/static/js/chosen/chosen.jquery.min.js"></script>
<script type="text/javascript" src="${ctx}/static/js/jquery/spinner/spinner.min.js"></script>
<script type="text/javascript" src="${ctx}/static/js/jqgrid/src/jquery.jqGrid.js"></script>
<script type="text/javascript" src="${ctx}/static/js/jqgrid/js/i18n/grid.locale-cn.js"></script>
<script type="text/javascript" src="${ctx}/static/js/adx/sys/menuGd.js"></script>
</body>
</html>